<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>合生元</title>
    <script>var phoneWidth = parseInt(window.screen.width);
var phoneHeight = parseInt(window.screen.height);
var phoneScale = phoneWidth / 640;
var ua = navigator.userAgent;
if (/Android (\d+\.\d+)/.test(ua)) {
    var version = parseFloat(RegExp.$1);
    if (version > 2.3) {
        document.write('<meta name="viewport" content="width=640, initial-scale= ' + phoneScale + ' ,minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
    }
    else {
        document.write('<meta name="viewport" content="width=640, initial-scale= ' + phoneScale + ' , target-densitydpi=device-dpi">');
    }
}
else {
    document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
}</script>
    <script type="text/javascript">

	</script> 
    <link rel="stylesheet" href="../assets/css/draw/main2.css"/>
</head>
<div class="wrap myPrize">
    <div class="logo"></div>
    <ul class="myPrize-frame-list">
        
    	<c:forEach items="${dtoList}" var="winner" varStatus="status">   	
    		  <c:choose>
	         	<c:when test ="${status.index == 0}" >
	         	
		    			<li class="myPrize-frame1">
			            <div class="myPrize-frame1-content">
			                <a href="javascript:;" class="prize-img">
			                	<img src="${winner.image}" alt="合生元" width="96" height="96">
			                </a>
			                <div class="prize-conten">    	
			                <h2>${winner.awardname }</h2>	           	                
						<c:choose>			
			                    <c:when test ="${winner.awardType == 'moviecode'}" >
			                 	<span>分享还能多领一张哦！</span>
					           <a href="${ctxFront}/shareIndex?shareId=${winner.shareId}&openId=${openId}&fromSystem=${fromSystem }" >分享给好友</a>   				                  
			              	</c:when> 
			                    
			                  <c:when test ="${winner.awardType == 'exchange'  || winner.awardType == 'coupon' || winner.awardType == 'points'}" >
			                   		 <span>详情到合生元卡卷包查看</span>
			                    </c:when>	  
			                    <c:when test ="${winner.awardType == 'commodity'}" >
			              			<span>收货人：<span>${winner.receiver}</span></span>
			              			<c:choose>
		              				<c:when test ="${winner.receiver == '未填'}" >
			              				<a href="${ctxFront}/contactInformation?awardname=${winner.awardname}&winnerid=${winner.winnerId}&openid=${openId }&fromSystem=${fromSystem }">修改收货信息</a> 
			              			</c:when>			              						              			
			              			</c:choose>
			                    </c:when>	                                    
		   			</c:choose>
		   			                </div>
			            </div>
			        </li>	         	        		
	         	</c:when>
    	<c:otherwise>
	         	
      		<li class="myPrize-frame2">
	            <div class="myPrize-frame2-content">
	                <a href="javascript:;" class="prize-img">
	                	<img src="${winner.image}" alt="合生元" width="96" height="96">
	                </a>
	                <div class="prize-conten">    	
	                <h2>${winner.awardname }</h2>	                	                
					<c:choose>			
	                      <c:when test ="${winner.awardType == 'moviecode'}" >
			                    <span>分享还能领多一张哦！</span>
			                    <a href="${ctxFront}/shareIndex?shareId=${winner.shareId}&openId=${openId}&fromSystem=${fromSystem }">分享给好友</a>
	                    </c:when>
	                    
	                      <c:when test ="${winner.awardType == 'exchange'  || winner.awardType == 'coupon' || winner.awardType == 'points'}" >
	                   		 <span>详情到合生元卡卷包查看</span>
	                    </c:when>	  
	                    <c:when test ="${winner.awardType == 'commodity'}" >
	              			<span>收货人：<span>${winner.receiver}</span></span>
	              			<c:choose>
		              				<c:when test ="${winner.receiver == '未填'}" >
			              				<a href="${ctxFront}/contactInformation?awardname=${winner.awardname}&winnerid=${winner.winnerId}&openid=${openId }&fromSystem=${fromSystem }">修改收货信息</a> 
			              			</c:when>			              						              			
			               </c:choose>
	                    </c:when>	                                     			
			   		</c:choose>
   			                </div>
	            </div>
	        </li>	         		         	
	         	</c:otherwise>	         	
	         </c:choose>
    	</c:forEach>

    </ul>
    <a href="javascript:history.go(-1)" class="return-btn">返回</a>
    <footer></footer>
</div>

<!--js-->
<script src="http://wximg.qq.com/wxp/libs/wxmoment/0.0.4/wxmoment.min.js"></script>
</body>
</html>